package lamnhungoc.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import lamnhungoc.dao.KhachHangDao;
import lamnhungoc.pojo.KhachHang;
import lamnhungoc.service.KhachHangService;
@Service
public class KhachHangServiceImpl implements KhachHangService {

	@Autowired
	private KhachHangDao khachHangDao;
	
	public KhachHangDao getKhachHangDao() {
		return khachHangDao;
	}

	public void setKhachHangDao(KhachHangDao khachHangDao) {
		this.khachHangDao = khachHangDao;
	}

	@Override
	public int createKhachHang(KhachHang kh) {
		return khachHangDao.createKhachHang(kh);
	}

	@Override
	public boolean isKhacHang(String username, String password) {
		return khachHangDao.isKhacHang(username, password);
	}

	

}
